namespace hjc {

	export class Position extends Component {

		private $x: number;
		private $y: number;
		public get x(): number { return this.$x; }
		public set x(x: number) { this.$x = x; }
		public get y(): number { return this.$y; }
		public set y(y: number) { this.$y = y; }
		public get xy(): [number, number] { return [this.$x, this.$y] }

		public init(x?: number, y?: number): void {
			this.$x = 0;
			this.$y = 0;
			super.resetPfc();
			if (numeric(x)) this.x = x;
			if (numeric(y)) this.y = y;
		}
	}
}